package com.wuqing.consumer.service;

import com.wuqing.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author wuqing
 * @date 2020/8/6
 */
@Service
public class UserHelloService {

    @Reference(version = "${demo.service.version}",
            application = "${dubbo.application.id}",
            registry = "${dubbo.registry.id}",
            check = false)
    private HelloService helloService;

    public String sayHello(String name) {
        return helloService.sayHello(name);
    }

}